package com.Trainer.FirstInterface;

import javax.swing.*;

public class IndexInterface extends JPanel {
    //属性
    IndexUpPanel indexUpPanel ;
    IndexBottomPanel indexBottomPanel ;

    //构造器
    public IndexInterface(int width, int height){
        indexUpPanel = new IndexUpPanel(0,0,900,100);
        indexBottomPanel = new IndexBottomPanel(0,100,900,400);
        //布局
        setBounds(0,0,width,height);
        setLayout(null);
        add(indexUpPanel);
        add(indexBottomPanel);

    }

    //方法
    public JButton getTrainerBtn(){
        return indexBottomPanel.getTrainingBtn();
    }
    public JButton getTextBtn(){
        return indexBottomPanel.getTestBtn();
    }
}
